package com.atguigu.tingshu.search.client;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.search.client.impl.SearchDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "service-search", path = "/api/search/", fallback = SearchDegradeFeignClient.class)
public interface SearchFeignClient {

    /**
     * 仅用于测试-手动将不同分类下ES热门专辑存入Redis中
     * @return
     */
    @GetMapping("/albumInfo/updateLatelyAlbumRanking")
    public Result updateLatelyAlbumRanking();
}
